package com.dymall.cart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dymall.cart.domain.pojo.Cart;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.DeleteMapping;

import java.util.List;

public interface CartMapper extends BaseMapper<Cart> {
    @Select("select * from cart where user_id = #{userId}")
    Cart selectByUserId(Long userId);
}
